package com.hyving.summer.fxexcel.model;

import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;



public class GoodsTableView {

    public SimpleIntegerProperty num;
    public SimpleStringProperty name;
    public SimpleIntegerProperty sale;
    public SimpleIntegerProperty refund;
    public SimpleDoubleProperty rate;



    public GoodsTableView(Integer num,String name,Integer sale,Integer refund,Double rate){
        this.num =new SimpleIntegerProperty(num);
        this.name =new SimpleStringProperty(name);
        this.sale =new SimpleIntegerProperty(sale);
        this.refund =new SimpleIntegerProperty(refund);
        this.rate =new SimpleDoubleProperty(rate);

    }

    public GoodsTableView(){

    }

    public Integer getNum() {
        return num.get();
    }
    public SimpleIntegerProperty numProperty(){
        return num;
    }
    public void setNum(Integer num) {
        this.num.set(num);
    }

    public String getName() {
        return name.get();
    }
    public SimpleStringProperty nameProperty(){
        return name;
    }
    public void setName(String name) {
        this.name.set(name);
    }

    public Integer getSale() {
        return sale.get();
    }
    public SimpleIntegerProperty saleProperty(){
        return sale;
    }
    public void setSale(Integer sale) {
        this.sale.set(sale);
    }

    public Integer getRefund() {
        return refund.get();
    }
    public SimpleIntegerProperty refundProperty(){
        return refund;
    }
    public void setRefund(Integer refund) {
        this.refund.set(refund);
    }

    public Double getRate() {
        return rate.get();
    }
    public SimpleDoubleProperty rateProperty(){
        return rate;
    }
    public void setNum(Double rate) {
        this.rate.set(rate);
    }
}
